from django.urls import path
from django.views import View
from rest_framework.routers import SimpleRouter, DefaultRouter

from backend.apps.recruit import views

urlpatterns = [
    # path('hotlist/',View.as_view({"get":"hot_list"})),

]

router = DefaultRouter()
# # 公司 企业的路由
router.register(r'enterprise', views.EnterpriseViewSet)
# # 职位的路由
router.register(r'recruits', views.RecruitViewSet)
# # 城市的路由
router.register(r'city', views.CityViewSet)
urlpatterns += router.urls